package com.yjz.springcloudconsumer01.remote.hystrix;

import com.yjz.springcloudconsumer01.remote.HelloRemoteInterface;
import org.springframework.stereotype.Component;

/**
 * @Desc 远程方法的fallback实现
 * @Author: jinzhong.yuan
 * @Date: 2019/2/15 17:19
 */
@Component
public class HelloRemoteHyStrix implements HelloRemoteInterface {
    @Override
    public String hello( String name) {
        return "hello" + name + ", this messge send failed ";
    }
}
